package com.perfree.mapper;


import com.perfree.entity.Peers;
import com.perfree.entity.Share;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface ShareMapper extends Mapper<Share> {

    @Select("select p.* from t_peers p, t_user u WHERE u.id=#{userId} and u.peersId=p.id")
    Peers getPeersByUserId(Integer userId);
}
